﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sun.Mvc.Models.ViewModels
{
    /// <summary>
    /// Json信息返回
    /// </summary>
    public class JsonResult
    {
        public JsonResult()
        {
            this.Code = 500;
            this.Message = "错误信息";
        }
        public int Code { get; set; }
        public string Message { get; set; }
    }
    /// <summary>
    /// Json信息返回
    /// </summary>
    /// <typeparam name="T">泛型</typeparam>
    public class JsonResult<T>
    {
        public JsonResult()
        {
            this.Code = 500;
            this.Message = "错误信息";
        }
        public int Code { get; set; }
        public string Message { get; set; }
        public T t { get; set; }
    }
}
